<?php
/**
 * Created by PhpStorm.
 * User: 曹旺
 * Date: 2018-04-20
 * Time: 12:54
 */
namespace app\index\model;
use think\Model;
class OrderRecord extends Model{
    public function tradeNo($tradeNo,$data){
        $record=OrderRecord::create([
            'order_number'=>$data['order_number'],
            'user_id'=>$data['user_id'],
            'trade_no'=>$tradeNo,
            'money'=>$data['total_fee'],
        ]);
        if ($record){
            return true;
        }
        return false;
    }
}